package com.onstar.cn.sqlite.entities;



import com.onstar.cn.sqlite.xutil.db.annotation.Column;
import com.onstar.cn.sqlite.xutil.db.annotation.Id;
import com.onstar.cn.sqlite.xutil.db.annotation.Table;

import java.io.Serializable;

/**
 * @ClassName: ReEventDataEntity
 * @Description: ReEventDataEntity entity
 * @author Xiaofeng Feng
 * @d2015年8月13日 下午2:15:18
 */
@Table(name = "t_onstar_eventservice")
public class ReEventDataEntity implements Serializable {
	private static final long serialVersionUID = 1L;
//	public static final String CONTENT = "content";
//	public static final String EVENT_ID = "eventId";
//	public static final String UPLOAD_LEVEL = "uploadLevel";
//	public static final String TRACKING_ID = "trackingId";
	public static final String CREATE_DATE = "createDate";
	public static final String TABLE_NAME = "t_onstar_eventservice";

	@Id
	@Column(column = "_id")
	private transient Integer id;
	@Column(column ="trackingID")
	private String trackingID;
	@Column(column ="createDate")
	private transient String createDate;
	@Column(column ="uploadLevel")
	private transient String uploadLevel = "2"; 	// 1立即上传，2满50条上传，3登陆上传
	@Column(column ="content")
	private String content; 			// 必须为json格式
	@Column(column ="eventID")
	private String eventID; 			// Onclick1;网络异常2；crash3
	/*
	 * {"accountID":"account","appID":"864895026552842","channelID":"1",
	 * "data":[{"content":
	 * "{\"status\":\"success\",\"time\":\"1439538278044\",\"transactionID\":\"F0101\",\"version\":\"5.0.1\"}","eventID":"1"}],
	 * "deviceID":"864895026552842","deviceOS":"5.0.2","deviceToken":"864895026552842","deviceType":"MI 4", "eventTS":"1439538324034","language":"zh"}
	 */
	private String status;
	private String time;
	private String transactionID;
	private String version;

	public String getEventID() {
		return eventID;
	}


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTrackingID() {
		return trackingID;
	}

	public void setTrackingID(String trackingId) {
		this.trackingID = trackingId;
	}


	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}


	public String getUploadLevel() {
		return uploadLevel;
	}

	public void setUploadLevel(String uploadLevel) {
		this.uploadLevel = uploadLevel;
	}

	public void setEventID(String eventID) {
		this.eventID = eventID;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getTransactionID() {
		return transactionID;
	}

	public void setTransactionID(String transactionID) {
		this.transactionID = transactionID;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}
